<template>
  <header>
      <div @click="back">
          <i class="el-icon-arrow-left"></i>
      </div>
      <div>
          <slot>
          <span>登录</span>
          </slot>
      </div>
      <div>
          <i class="el-icon-shopping-cart-2"></i>
      </div>
  </header>
</template>

<script>
export default {
    methods:{
        back(){
            this.$router.push('/my');
        }
        
    }
}
</script>

<style scoped lang="scss">
header{
    width: 100%;
    height: 2rem;
    background-color: bisque;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
</style>